package com.bingfor.easycablelink.add.viewModel;

import android.os.Bundle;

import com.bingfor.easycablelink.base.BaseActivity;
import com.bingfor.easycablelink.base.WebViewActivity;
import com.bingfor.easycablelink.widgets.ViewModel;

/**
 * Created by LY on 2017/5/17.
 */

public class AddPageViewModel implements ViewModel {


       private BaseActivity mContent;
    private String[] titles = new String[]{"关于我们","合作品牌","银行账户","经典案例","生产设备","仓库实景","资质荣誉","官网网站"};

        public AddPageViewModel(BaseActivity mContent) {
            this.mContent = mContent;
        }

    public void toNextWeb(int id){
        Bundle bundle = new Bundle();
        bundle.putString("title",titles[id]);
        bundle.putString("url","https://www.baidu.com/");
        mContent.moveToNextPage(WebViewActivity.class,bundle);
        switch (id){
            case 0:

                break;
            case 1:
                break;
            case 2:
                break;
            case 3:
                break;
            case 4:
                break;
            case 5:
                break;
            case 6:
                break;
            case 7:
                break;

        }
    }

}
